function unSpamifyEmail(user,domain)
{
    locationstring = "mailto:" + user + "@" + domain;
    window.location = locationstring;
}

function unSpamifySip(user,domain)
{
    locationstring = "sip:" + user + "@" + domain;
    window.location = locationstring;
}


function show(id,x,y)
{
    thing = document.getElementById(id);
    thing.style.display = 'block';
    if (y+thing.height > window.innerHeight)
	y = window.innerHeight - thing.height;
    thing.style.bottom = window.innerHeight - y + "px";
    thing.style.left = (x+20) + "px";
}

function mouseoverHelp(e)
{
    var posx = 0;
    var posy = 0;
    if (!e)
	var e = window.event;
    if (e.pageX || e.pageY)
    {
	posx = e.pageX;
	posy = e.pageY;
    }
    else if (e.clientX || e.clientY)
    {
	posx = e.clientX + document.body.scrollLeft;
	posy = e.clientY + document.body.scrollTop;
    }
    show(this.id+"_info",posx,posy)
}

function mouseout(e)
{
    document.getElementById(this.id+"_info").style.display = 'none';
}

function doMove()
{
    this.obj.style.left = this.obj.style.left + (this.target_x - this.obj.left);
}
    
function mover(obj)
{
    this.target_x = 10;
    this.target_y = 10;
    this.obj = obj;
    this.move = doMove;
    
}


function loaded()
{
    document.getElementById('arusha_a').onmousemove = mouseoverHelp;
    document.getElementById('arusha_a').onmouseout = mouseout;
}
